From 5a3294e5348b76e8a657e7c03e05111d2aab58d8 Mon Sep 17 00:00:00 2001 From: "iap10@freefall.cl.cam.ac.uk" Date: Sun, 21 Aug 2005 00:10:30 +0000 Subject: [PATCH] PAE fix to allow dom0 to be >4GB. PAE has made huge progress this week. I now kn ow of no PAE specific outstanding issues. Go find some :-) Signed-off-by: ian@xensource.com --- xen/arch/x86/domain_build.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/x86/domain_build.c b/xen/arch/x86/domain_build.c index bde7d8ef31..939aaf9992 100644 --- a/xen/arch/x86/domain_build.c +++ b/xen/arch/x86/domain_build.c @@ -72,7 +72,7 @@ boolean_param("dom0_translate", opt_dom0_translate); static struct pfn_info *alloc_largest(struct domain *d, unsigned long max) { struct pfn_info *page; - unsigned int order = get_order(max * PAGE_SIZE); + unsigned int order = get_order(max)+PAGE_SHIFT-1; if ( (max & (max-1)) != 0 ) order--; while ( (page = alloc_domheap_pages(d, order, 0)) == NULL ) -- 2.30.2